﻿<%@ Page Title="Trang quản trị Website" Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="VIT.Web.Admin.Home" %>
<%@ Register Assembly="VIT.Web.Controls" Namespace="VIT.Web.Controls" TagPrefix="VIT" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
    <title>Trang quản trị Website</title>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">

	<script type="text/javascript">
	    $(document).ready(function() {
	        $(".config-content").hide();
	        $(".lock").click(function() {
	            var id = $(this).attr('alt');
	            if ($("#" + id).css("display") == "block") {
	                $("#" + id).slideUp("slow");
	                $(this).attr("src", $(this).attr("src").replace("show", "hide"));
	            } else {
	                $(".config-content").slideUp("slow");
	                $("#" + id).slideDown("slow");
	                $(this).attr("src", $(this).attr("src").replace("hide", "show"));
	            }
	        });
	    });
   </script>

   <form id="MainForm" runat="server">		
        <div style="margin:30px; text-align:center">
            <h2>WEBSITE CONFIGURATION</h2>
        </div>			

        <div class="config-title">
            <img src="<%=URLTemplatePath%>Images/show.png" class="lock" alt="0"/> Config Company
            <span> <a href="<%= linkComponent("Config", "CompanyConfig", "sId=1")%>">Config</a> </span>
        </div>
        <div class="config-content" id="0">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td><VIT:Statistics ID="Sttt" runat="server"></VIT:Statistics></td>
                    <td>
                        <table>
                            <tr>
                                <td>Tên công ty:</td>
                                <td><%=company.CompanyName%></td>
                            </tr>
                            <tr>
                                <td>Email:</td>
                                <td><%=company.Email%></td>
                            </tr>
                            <tr>
                                <td>Số điện thoại:</td>
                                <td><%=company.Phone%></td>
                            </tr>
                            <tr>
                                <td>Số fax:</td>
                                <td><%=company.Fax%></td>
                            </tr>
                            <tr>
                                <td>Địa chỉ:</td>
                                <td><%=company.Address%></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <br />

        <div class="config-title">
            <img src="<%=URLTemplatePath%>Images/show.png" class="lock" alt="1"/> Config Website
            <span> <a href="<%= linkComponent("Config", "WebConfig", "")%>">Config</a> </span>
        </div>
        <div class="config-content" id="1">
            <asp:GridView runat="server" ID="gvwWebConfig"></asp:GridView>                    
        </div>
        <br />
        
        <div class="config-title">
            <img src="<%=URLTemplatePath%>Images/show.png" class="lock" alt="2"/> Config Template
            <span> <a href="<%= linkComponent("Config", "TemplateConfig", "")%>">Config</a> </span>
        </div>
        <div class="config-content" id="2">
            <asp:GridView runat="server" ID="gvwTemplateConfig"></asp:GridView>                    
        </div>
        <br />
        
        <div class="config-title">
            <img src="<%=URLTemplatePath%>Images/show.png" class="lock" alt="3"/> Config Position
            <span> <a href="<%= linkComponent("Config", "PositionConfig", "")%>">Config</a> </span>
        </div>
        <div class="config-content" id="3">
            <asp:GridView runat="server" ID="gvwPositionConfig"></asp:GridView>                    
        </div>
        <br />
        
        <div class="config-title">
            <img src="<%=URLTemplatePath%>Images/show.png" class="lock" alt="4"/> Config Language
            <span> <a href="<%= linkComponent("Config", "LanguageConfig", "")%>">Config</a> </span>
        </div>
        <div class="config-content" id="4">
            <asp:GridView runat="server" ID="gvwLanguageConfig"></asp:GridView>                    
        </div>
        <br />
        
        <div class="config-title">
            <img src="<%=URLTemplatePath%>Images/show.png" class="lock" alt="5"/> Config Function
            <span> <a href="<%= linkComponent("Config", "FunctionConfig", "")%>">Config</a> </span>
        </div>
        <div class="config-content" id="5">
            <asp:GridView runat="server" ID="gvwFunctionConfig"></asp:GridView>                    
        </div>
        <br />
		           
	</form>
</asp:Content>
